package com.ctakit.proxy.cglib;

import net.sf.cglib.core.DebuggingClassWriter;

public class CglibTest {

	public static void main(String[] args) {

		System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "/Users/lizhenmin/tmp/cglib/classes"); // --该设置用于输出cglib动态代理产生的类

		// base为生成的增强过的目标类
		CRealSubject subject = (CRealSubject) new CglibProxy().getInstance(new CRealSubject());
		subject.request();
	}
	 
}
